package com.quickcancellation.crm.service.impl;

import com.quickcancellation.crm.pojo.dto.PageDto;
import com.quickcancellation.crm.pojo.entity.Stocktransfer;
import com.quickcancellation.crm.mapper.StoretransferMapper;
import com.quickcancellation.crm.service.IStoretransferService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 库存调拨申请表 服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2023-03-14
 */
@Service
public class StoretransferServiceImpl extends ServiceImpl<StoretransferMapper, Stocktransfer> implements IStoretransferService {


    @Resource
    private StoretransferMapper stockTransferMapper;

    @Override
    public List<Map> getTransferList(PageDto<Map> pageDto) {
        return stockTransferMapper.getTransferList(pageDto);
    }

    @Override
    public Integer getTransferListCount(PageDto<Map> pageDto) {
        return stockTransferMapper.getTransferListCount(pageDto);
    }
}
